<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        table{
            border-collapse: collapse;
            width:700px;
            line-height: 40px;
            text-align: center;
        }
        td,th{
            border:1px solid #333;
        }
    </style>
</head>

<body>
    <h3>学员信息</h3>
    <table>
        <thead>
            <tr>
                <th>姓名</th><th>年龄</th><th>操作</th>
            </tr>
        </thead>
        <tbody>
            {{each data}}
            <tr>
                <td>{{$value.name}}</td><td>{{$value.age}}</td><td><a href="/edit?id={{@$value._id}}">编辑</a> <a href="/delete?id={{@$value._id}}">删除</a></td>
            </tr>
            {{/each}}
        </tbody>
    </table>
    <p>{{@idValue}}</p>
</body>

</html>